package yf.mall.enums;

import lombok.Getter;


/**
 * ${comments}
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date Tue Sep 24 09:29:07 CST 2019
 */
@Getter
public enum MallOrderPayStatusEnum {


    NOT_PAID(0,"未支付")
    ,


    PAID(1,"已支付")

    ;


    int index;
    String value;

    MallOrderPayStatusEnum(int index,String value) {
        this.index = index;
        this.value = value;
    }

    public static String indexOf(int idx) {
        return MallOrderPayStatusEnum.values()[idx].getValue();
    }

}
